<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- 第一步移动端的视口 -->
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 第二步引入我们的mui css mui js  -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">

    <!-- 引入图标字体css -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <script src="./assets/mui/js/mui.js"></script>
    <script src='./assets/zepto/zepto.min.js'> </script>
    <script src="./assets/artTemplate/template-web.js"></script>


    <!-- 引入我们公共js -->
    <script src="./js/base.js"></script>
    <script src='./js/cart.js'></script>

    <!-- 我们自己的样式 -->
    <link rel="stylesheet" href="./css/mybase.css">
    <link rel="stylesheet" href="./css/cart.css">

</head>

<body>
    <!-- 主页面标题 -->
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-icon mui-icon-search  mui-pull-right" herf='search.html'></a>
        <h1 class="mui-title">我的购物车</h1>
    </header>

    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item mui-active" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon  fa  fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>

    <div class="myCart">

        <ul class="mui-table-view" id='cartListBox'>


        </ul>

        <div>
            总价：1000
        </div>
    </div>




    <script type="text/html" id='cartContentTmp'>

        {{each  result items i}}
        <li class="mui-table-view-cell mui-media">

                <div class="mui-slider-handle">
                <a href="javascript:;">
                    <img class="mui-media-object mui-pull-left" src="{{items.pic[0].picAddr}}">
                    <div class="mui-media-body">
                        <p>{{items.proName}}</p>
                        <div class="mui-ellipsis  detailInfor mui-clearfix">
                            <span>
                                <input type="checkbox" checked="checked" name="" id="">
                                <span>现价:{{items.price}}</span>
                                <span>原价:{{items.oldPrice}}</span>
                            </span>
                            <span>
                                鞋码尺寸:{{items.size}}
                            </span>
                            <span>
                                数量{{items.num}}双
                            </span>

                        </div>
                    </div>
                </a>
            </div>
            <div class="mui-slider-right mui-disabled">
                    <a class="mui-btn mui-btn-blue  edit-btn" data-id="{{items.id}}">编辑</a>
                    <a class="mui-btn mui-btn-red del-btn" data-id="{{items.id}}">删除</a>
                </div>

            </li>

   {{/each}}

    </script>
</body>

</html>